#测试用例类
import unittest
from selenium import webdriver
from ykmn2.Page.Page import Page
from ykmn2.Page.Page1 import Page1
from time import sleep
class Testcase(unittest.TestCase):
    #测试固件
    def setUp(self) -> None:
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
        self.driver.implicitly_wait(5)
    def tearDown(self) -> None:
        sleep(10)
        self.driver.quit()
    def test_souhu_01(self):
        po=Page(self.driver)
        po.host()
        po.sjh()
        po.mm()
        po.button()
    def test_souhu_02(self):
        po = Page1(self.driver)
        po.host()
        po.sjh()
        po.mm()
        po.button()
        po.email_click()
        sleep(2)
        po.people()
        po.subject()
        po.send()
if __name__=='__main__':
    unittest.main()